namespace System.Web.Core
{
    public class RolePermissionRequest : TEntityRequest<RolePermission>
    {
        private int userId = GetParameterValue<int>(ParameterName.UserId);
        private int roleId = GetParameterValue<int>(ParameterName.RoleId);

        public int UserId
        {
            get
            {
                return userId;
            }
            set
            {
                userId = value;
            }
        }
        public int RoleId
        {
            get
            {
                return roleId;
            }
            set
            {
                roleId = value;
            }
        }
    }
    public class RolePermissionListRequest : TEntityListRequest<RolePermission>
    {
        private int? userId = GetParameterValue<int?>(ParameterName.UserId);
        private int? roleId = GetParameterValue<int?>(ParameterName.RoleId);

        public int? UserId
        {
            get
            {
                return userId;
            }
            set
            {
                userId = value;
            }
        }
        public int? RoleId
        {
            get
            {
                return roleId;
            }
            set
            {
                roleId = value;
            }
        }
    }
    public class RolePermissionReply : EntityReply
    {
    }
}